<?php 
session_start();
include("../controller/User.class.php");
include("../model/Db.class.php");
$db = new Db();
$u= new User($db);
$error =$u->regInfoCheck();
if($error){
	echo "<script>alert('".$error['msg']."');window.history.go(-1);</script>";
	exit;
}
$result =$u->userReg();
if($result['status']==104){
	echo "<script>alert('".$result['msg']."');window.history.go(-1);</script>";
	exit;
}
if($result['status']==105){
	echo "<script>alert('".$result['msg']."');window.location.href='../view/index.v.php';</script>";
	exit;
}
 ?>